package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_dict
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_dict")
public class SysDict implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 字典名称
     */
    @Column(name = "dict_name", nullable = false, length = 100)
    private String dictName;
    
    /**
     * 字典编码
     */
    @Column(name = "dict_code", nullable = false, length = 100)
    private String dictCode;
    
    /**
     * 描述
     */
    @Column(name = "description", length = 255)
    private String description;
    
    /**
     * 删除状态
     */
    @Column(name = "del_flag")
    private Integer delFlag;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 字典类型0为string,1为number
     * 默认值: 0
     */
    @Column(name = "type")
    private Integer type;
    
    @Override
    public String toString() {
        return "SysDict{" +
            "id=" + id +
            ", dictName=" + dictName +
            ", dictCode=" + dictCode +
            ", description=" + description +
            ", delFlag=" + delFlag +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", type=" + type +
        '}';
    }
} 